package com.salon.modules.makeup.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.salon.modules.makeup.entity.ReservationEntity;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 服务预约
 *
 * @author lch 12345678@qq.com
 * @since 1.0.0 2023-10-10
 */
@Mapper
public interface ReservationMapper extends BaseMapper<ReservationEntity> {

    IPage<ReservationEntity> listReservationByPage(IPage<ReservationEntity> page, @Param("query" ) Map<String, Object> params);

    ReservationEntity getReservationById(Integer id);

    IPage<ReservationEntity> listMyReservationPage(IPage<ReservationEntity> page, @Param("query" ) Map<String, Object> params);

}